package com.aaa.service.impl;

import com.aaa.dao.L_FieldTripDao;
import com.aaa.service.L_FieldTripService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class L_FieldTripServiceImpl implements L_FieldTripService {
    @Autowired
    private L_FieldTripDao dao;
    @Override
    public List<Map> getAll(Map map) {
        return dao.getAll(map);
    }

    @Override
    public Integer getCount(Map map) {
        return dao.getCount(map);
    }

    @Override
    public List<Map> DWname() {
        return dao.DWname();
    }

    @Override
    public Integer xinzeng(Map map) {
        return dao.xinzeng(map);
    }

    @Override
    public void del(Integer id) {
        dao.del(id);
    }

    //查重方法
    @Override
    public int chachong(Map map) {
        List<Map> list=dao.chachong(map);
        if (list.size()>0){
            return 1;
        }else {
            return  0;
        }
    }

    @Override
    public List<Map> inscore(Map map) {
        return dao.inscore(map);
    }

    @Override
    public void addinscore(Map map) {
        dao.addinscore(map);
    }

    @Override
    public void setinscore(Map map) {
        dao.setinscore(map);
    }
}
